package com.ruoyi.mushcoin.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.excel.annotation.ExcelDictFormat;
import com.ruoyi.common.excel.convert.ExcelDictConvert;
import com.ruoyi.common.orm.core.domain.BaseEntityTo;
import com.ruoyi.mushcoin.domain.TgWalletOrderTransaction;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * TG钱包订单交易(Ton...)视图对象 tg_wallet_order_transaction
 *
 * @author billy
 * @date 2024-11-01
 */
@Data
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TgWalletOrderTransaction.class)
public class TgWalletOrderTransactionVo extends BaseEntityTo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * TG用户ID
     */
    @ExcelProperty(value = "TG用户ID")
    private Long userId;

    /**
     * 商品ID
     */
    @ExcelProperty(value = "商品ID")
    private Long goodsId;

    /** 商品类型 */
    private Integer goodsType;

    /**
     * 支付交易订单
     */
    @ExcelProperty(value = "支付交易订单")
    private String payOrderId;

    /**
     * 区块交易ID
     */
    //@ExcelProperty(value = "区块交易ID")
    private String transactionId;
    /**
     * 区块交易transaction_hash
     */
    @ExcelProperty(value = "区块交易Hash")
    private String transactionHash;

    /**
     * 交易金额
     */
    @ExcelProperty(value = "交易金额")
    private Long amount;

    /**
     * 交易金额to
     */
    @ExcelProperty(value = "交易金额to")
    private BigDecimal amountTo;

    /**
     * 发送地址
     */
    @ExcelProperty(value = "发送地址")
    private String fromAddress;

    /**
     * 接受地址
     */
    @ExcelProperty(value = "接受地址")
    private String toAddress;

    /**
     * token
     */
    @ExcelProperty(value = "token")
    private String token;

    /**
     * boc
     */
    @ExcelProperty(value = "boc")
    private String boc;

    /**
     * 订单状态
     */
    @ExcelProperty(value = "订单状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "trade_order_status")
    private Integer status;

    /**
     * 1(ton支付)，2(usdt支付) ，3(star支付)
     */
    private Integer transType;

    /**
     * 交易钱包类型
     */
    @ExcelProperty(value = "交易钱包类型")
    private String walletType;

    /**
     * 交易币当前价格
     */
    @ExcelProperty(value = "交易币当前价格")
    private BigDecimal coinTransPrice;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 活动VIP到期时间
     */
    @ExcelProperty(value = "活动VIP到期时间")
    private Date taskVipEndTime;


    @ExcelProperty(value = "姓名")
    private String realName;

    @ExcelProperty(value = "用户名")
    private String userName;

    @ExcelProperty(value = "默认钱包地址")
    private String defaultAddress;

    @ExcelProperty(value = "商品Tile")
    private String goodsTitle;


}
